package com.healthy.medical.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.medical.mapper.BookingsMapper;
import com.healthy.medical.domain.Bookings;
import com.healthy.medical.service.IBookingsService;

/**
 * 医疗机构Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class BookingsServiceImpl implements IBookingsService 
{
    @Autowired
    private BookingsMapper bookingsMapper;

    /**
     * 查询医疗机构
     * 
     * @param id 医疗机构主键
     * @return 医疗机构
     */
    @Override
    public Bookings selectBookingsById(Long id)
    {
        return bookingsMapper.selectBookingsById(id);
    }

    /**
     * 查询医疗机构列表
     * 
     * @param bookings 医疗机构
     * @return 医疗机构
     */
    @Override
    public List<Bookings> selectBookingsList(Bookings bookings)
    {
        return bookingsMapper.selectBookingsList(bookings);
    }

    /**
     * 新增医疗机构
     * 
     * @param bookings 医疗机构
     * @return 结果
     */
    @Override
    public int insertBookings(Bookings bookings)
    {
        return bookingsMapper.insertBookings(bookings);
    }

    /**
     * 修改医疗机构
     * 
     * @param bookings 医疗机构
     * @return 结果
     */
    @Override
    public int updateBookings(Bookings bookings)
    {
        return bookingsMapper.updateBookings(bookings);
    }

    /**
     * 批量删除医疗机构
     * 
     * @param ids 需要删除的医疗机构主键
     * @return 结果
     */
    @Override
    public int deleteBookingsByIds(Long[] ids)
    {
        return bookingsMapper.deleteBookingsByIds(ids);
    }

    /**
     * 删除医疗机构信息
     * 
     * @param id 医疗机构主键
     * @return 结果
     */
    @Override
    public int deleteBookingsById(Long id)
    {
        return bookingsMapper.deleteBookingsById(id);
    }
}
